/*
 * @Author: your name
 * @Date: 2021-04-19 15:09:03
 * @LastEditTime: 2021-05-28 11:39:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /admin/src/config/env.tsx
 */
interface IEnv {
  dev: string;
  prod: string;
}
type TEnv = keyof IEnv;

const ENV: IEnv = {
  dev: 'http://localhost:7449',
  // dev: 'http://192.168.21.178:7449',
  prod: 'http://localhost:7449',
};

export const BaseUrl = ENV[process.env.REACT_APP_ENV as keyof typeof ENV];
console.log(BaseUrl, 'BaseUrl=');
